package library.item;

public class Map extends Item implements LibraryItem{
	

	
	public Map(String identifier, String author, String name, String region, int scale) {
		super(identifier, author, name);
		this.region = region;
		this.scale = scale;
	}

	String region;
	int scale;

	@Override
	public String getInfo() {
		StringBuilder info = new StringBuilder();
		info.append("Region: ").append(region).append(". Massstab 1:").append(scale).append(". ISBN ").append(getIdentifier());
		info.trimToSize();
		return info.toString();
	}

	public String toString(){
		StringBuilder string =new StringBuilder();
		string.append(this.getData()).append(". ").append(this.getInfo());
		string.trimToSize();
		return string.toString();
	}

}
